<a nz-dropdown nzTrigger="hover" [(nzVisible)]="typeMenuVisible" [nzDropdownMenu]="menu" [nzClickHide]="false">
    <button nz-button nzType="primary" (click)="cancel()" [ngStyle]="{'background-color':state ? '#18c0FF': '#1890FF','border-color':state ? '#18c0FF': '#1890FF'}">测量<i nz-icon class="measure-dropdown-icon" [ngStyle]="{'transform':typeMenuVisible ? 'rotate(180deg)' : 'rotate(0deg)' }" nzType="down"></i></button>
</a>
<nz-dropdown-menu #menu="nzDropdownMenu">
    <ul class="dropdown-menu">
        <li (click)="typeSelectChange('length')">
            长度
        </li>
        <li (click)="typeSelectChange('area')">
            面积
        </li>
    </ul>
</nz-dropdown-menu>
